<table class="admin">
  <thead>
    <tr>
      <th>查看</th>
      <th>商品</th>
      <th>尺寸</th>
      <th>单价</th>
      <th>数量</th>
      <th>小计</th>
      <th>修改</th>
      <th>删除</th>
    </tr>
  </thead>
  <tfoot>
    <tr>
      <td colspan="8" style="text-align:right;">
        <div>
          合计:<span class="yen" style="color:#cc0000;font-size:16px;"><%=@cart.total_price %></span>
          <% if session[:agent_id] %>
            <span style="margin-left:20px">折扣:<%=foramt_percentage DISCOUNT%></span>
            <span style="margin-left:20px">折后价:</span>
            <span class="yen"><%=@cart.total_price * DISCOUNT%></span>
          <% end %>
        </div>
        <a href="/orders/new" title="结账">
          <img src="/images/checkout.gif" alt="结账" ></img>
        </a>
        <a href="/store/<%=session[:him_or_her]%>">
          <img src="/images/gonobuy.gif" alt="继续购买" ></img>
        </a>
        <a href="<%=back_url%>" class="action_back" title="返回上一步">
          <img src="/images/back.gif" alt="返回上一步" />
        </a>
        <a href="/store/<%=session[:him_or_her]%>?empty_cart=1">
          <img src="/images/cancelbuy.gif" alt="放弃购买" ></img>
        </a>
      </td>
    </tr>
  </tfoot>
  <tbody>
    <%= render(:partial => "/store/cart_item", :collection => @cart.items) %>
  </tbody>

</table>







